const mixin = {
    data() {
        return {
        }
    },
    methods: {
        /**
    * @desc :递归深拷贝
    * @date :
    * @params :
    * @author : liangdecheng
    **/
        copy(obj) {
            var newobj = obj.constructor === Array ? [] : {};
            if (typeof obj !== "object") {
                return;
            }
            for (var i in obj) {
                newobj[i] = typeof obj[i] === "object" ? this.copy(obj[i]) : obj[i];
            }
            return newobj;
        },
    }
}
export default mixin;